﻿using System;
using System.Collections.Generic;

namespace CoreSoft.Frame.Entity
{
    /// <summary>
    /// 调拨申请
    /// </summary>
    [Serializable]
    public class SaleOrder
    {
        #region 表字段
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime billdate
        {
            get;
            set;
        }

        /// <summary>
        /// 制单人
        /// </summary>
        public String createdby
        {
            get;
            set;
        }

        /// <summary>
        /// 订单号
        /// </summary>
        public String billcode
        {
            get;
            set;
        }
        /// <summary>
        /// 客户编码
        /// </summary>
        public String customercode
        {
            get;
            set;
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public String customername
        {
            get;
            set;
        }
        /// <summary>
        /// 客户订单号
        /// </summary>
        public String pobillcode
        {
            get;
            set;
        }
               
        /// <summary>
        /// 地址
        /// </summary>
        public String address
        {
            get;
            set;
        }

        public List<saleorders> bodys
        {
            get;
            set;
        }

        /// <summary>
        /// 联系人编码 
        /// </summary>
        public string ccuspersoncode;
        /// <summary>
        /// 联系人 
        /// </summary>
        public string ccusperson;
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string ccuspersonPhone;
        /// <summary>
        /// 联系人 
        /// </summary>
        public string cCrmPersonName;
        /// <summary>
        /// 联系人编码 
        /// </summary>
        public string cCrmPersonCode;
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string cCrmPersonPhone;
        /// <summary>
        /// 超发上限
        /// </summary>
        public decimal? UpperLimit;

        #endregion
              
    }

    public class saleorders{
    
        
        /// <summary>
        /// 存货编码
        /// </summary>
        public String material
        {
            get;
            set;
        }

        /// <summary>
        /// 品名
        /// </summary>
        public String cinvname
        {
            get;
            set;
        }

        /// <summary>
        /// 料号 存货扩展自定义项4
        /// </summary>
        public string partno
        {
            get;
            set;
        }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Qty { get; set; }

        /// <summary>
        /// 行号
        /// </summary>
        public Int32 rowid
        {
            get;
            set;
        }

        /// <summary>
        /// 预出货日期
        /// </summary>
        public DateTime? PerShipDate;
       
    }
}
